package com.xinhe.web.controller;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping(value = "/adapay/callback")
@Api(value = "AdaPayCallback模块", tags = "AdaPayCallback模块")
public class AdaPayCallbackController {

    /*private String checkSign(HttpServletRequest request) {
        try {
            String data = request.getParameter("data");

            String sign = request.getParameter("sign");



            String publicKey = AdapayCore.PUBLIC_KEY;
            log.info("验签请参：data={}sign={}", data, sign);

            boolean checkSign = AdapaySign.verifySign(data, sign, publicKey);
            if (checkSign) {

                log.info("成功返回数据data:" + data);
                return data;
            }

            log.info("验签失败:");
        }
        catch (Exception e) {
            log.info("异步回调开始，参数，request={}", e.getMessage());
        }
        return null;
    }*/
}